﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BuyThePeople
{
    public static class ConstFactory
    {
        #region 웹 경로

        public const string UrlHome = "~/Home";
        public const string UrlJoin = "~/User/Join";
        public const string UrlLogin = "~/User/Login";
        public const string UrlLogout = "~/User/Logout";
        public const string UrlUserInfo = "~/User/UserInfo";
        public const string UrlUserJointPurchase = "~/User/UserJointPurchase";
        public const string UrlGoodsMake = "~/Goods/Make";
        public const string UrlGoodsDetail = "~/Goods/Detail/";

        public const string UrlError = "~/Home/Error";
        
        #endregion

        #region 사용자

        public const string SessionUser = "SessionUser";
        
        #endregion

        public static int TotalCount()
        {
            Models.DataModelsDataContext dmdc = new Models.DataModelsDataContext();
            return dmdc.T_GOODS.Count(item => item.BidDateEnd.Value.CompareTo(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day)) >= 0);
        }


    }
}